package com.example.secondhandspringboot.service;

import com.example.secondhandspringboot.domain.dto.GoodsDTO;
import com.example.secondhandspringboot.domain.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.secondhandspringboot.domain.vo.GoodsVO;
import com.example.secondhandspringboot.results.PageResult;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 周在林
 * @since 2024-04-01
 */
public interface IGoodsService extends IService<Goods> {

    PageResult<GoodsVO> getGoods(int page, int pageSize, String search);

    void pushGoods(GoodsDTO goodsDTO, HttpServletRequest request);

    List<GoodsVO> getRecommendGoods();

    List<GoodsVO> getGoodsHotTop(Long currentId, int hotTopGoodsNum);

    PageResult<GoodsVO> getMyPushGoods(int page, int pageSize, Long currentId);

    List<GoodsVO> guessLike(Long currentId);
}
